package com.stlm2.dems.card.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.card.entity.Card;
import com.stlm2.dems.card.dao.CardDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

@Repository("cardDao")
public class CardDaoImpl extends BaseDaoImpl<Card> implements CardDao {
    public Card getByUserId(int createUserId){
        return selectOne("getByUserId",createUserId);
    }

    @Override
    public Integer countByUserId(Integer createUserId) {
        return  (Integer) _selectOne("countByUserId",createUserId);
    }

    @Override
    public Card getByUserIdDefault(int createUserId) {
        return selectOne("getByUserIdDefault",createUserId);
    }
}